package cn.itsource.basic.util;

import cn.hutool.http.HttpUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;

@Component//交给spring
public class SendMessageService {
    public void  sendMessage(String phone,String verify){
      //  http://utf8.api.smschinese.cn/?Uid=本站用户名&Key=接口短信密钥&smsMob=手机号码&smsText=验证码:8888
        HttpUtil.get("http://utf8.api.smschinese.cn/?Uid=fengluocheng&Key=7677256F1FA036CC33B92E2E6A5B0196&smsMob="+phone+"&smsText=宠物乐园验证码:"+verify);
    }
}
